﻿
using ECommerce.Shared.Models;


namespace ECommerce.ProductService.Services;

public interface IProductService
{
    // 产品操作
    Task<List<ProductDto>> GetAllProductsAsync();
    Task<ProductDto> GetProductByIdAsync(Guid id);
    Task<ProductDto> CreateProductAsync(CreateProductRequest request);
    Task UpdateProductAsync(Guid id, UpdateProductRequest request);
    Task DeleteProductAsync(Guid id);

    // 类别操作
    Task<List<CategoryDto>> GetAllCategoriesAsync();
}